﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wpf_Tool_ZC.util
{
    class UtilList
    {

        public static void BiJiao_str(List<string> _list1, List<string> _list2, List<string> _listSame, List<string> _listDiff)
        {
            for (int i = 0; i < _list1.Count; i++)
            {
                int idx = _list2.FindIndex(a => a == _list1[i]);
                if (idx == -1)
                {
                    if (_listDiff != null)
                        _listDiff.Add(_list1[i]);
                }
                else
                {
                    if (_listSame != null)
                        _listSame.Add(_list1[i]);
                }
            }
        }
    }
}
